﻿Type=Activity
Version=5.8
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.
	Private tecid,nNum=1 As Int
	Private curtec As Teacher
	Private itemkcnumlbl As Label
	Private lblteachername As Label
	Private lbljiesuankechengprice As Label
	Private pc As PayCls
	Private edtcontents As EditText
	Private lbljiesuantotal As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
	'Do not forget to load the layout file created with the visual designer. For example:
	Activity.LoadLayout("laybuyjinqi")
	initviews
End Sub
Sub initviews
	tecid=g_store.conf.Get("tecid")
	curtec=g_store.get("curtecobj")
	comm.SetEdtStyle2(edtcontents,False)
	pc.Initialize(Activity)
	calc
End Sub
Sub calc
	itemkcnumlbl.Text=nNum
	comm.setFA(lbljiesuankechengprice,"fa-rmb","100")
	comm.setFA(lbljiesuantotal,"fa-rmb","100")
	lblteachername.Text=curtec.nickname&CRLF&"手机:"&curtec.mobile
End Sub
Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub ivback_Click
	Activity.Finish
End Sub

Sub btngopay_Click
	'ToastMessageShow("支付",False)
	pc.SubmitJinqiOrder(curtec.ID,edtcontents.Text.Trim)
End Sub
